@echo off
chcp 65001 >nul
echo ====================================
echo 推送错题本入口更新
echo ====================================
echo.

cd /d "%~dp0"

git add math-academy\src\app\dashboard\page.tsx
git add 本地数据库完整初始化.bat
git commit -m "feat: Add mistakes book entry and local database initialization script"
git push origin main

echo.
echo ====================================
echo 推送完成！
echo ====================================
echo.
echo 服务器更新步骤：
echo 1. cd /www/wwwroot/www.lycc.top/aoshu
echo 2. git pull origin main
echo 3. cd math-academy
echo 4. npm run build
echo 5. pm2 restart math-academy
echo.
pause

